home *** CD-ROM | disk | FTP | other *** search
/ Delphi Magazine Collection 2001 / Delphi Magazine Collection 20001 (2001).iso / Bonus / Plasmatech / ptscp_eval.exe / %MAINDIR% / EvalC4 / ole2.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  2001-08-31  |  5.8 KB  |  307 lines

  1. // Borland C++ Builder
  2. // Copyright (c) 1995, 1999 by Borland International
  3. // All rights reserved
  4.  
  5. // (DO NOT EDIT: machine generated header) 'OLE2.pas' rev: 4.00
  6.  
  7. #ifndef OLE2HPP
  8. #define OLE2HPP
  9.  
  10. #pragma delphiheader begin
  11. #pragma option push -w-
  12. #include <Windows.hpp>    // Pascal unit
  13. #include <SysInit.hpp>    // Pascal unit
  14. #include <System.hpp>    // Pascal unit
  15.  
  16. //-- user supplied -----------------------------------------------------------
  17. #include <ole2.h>
  18.  
  19. namespace Ole2
  20. {
  21. //-- type declarations -------------------------------------------------------
  22. typedef unsigned HResult;
  23.  
  24. typedef unsigned TResultList[65536];
  25.  
  26. typedef unsigned *PResultList;
  27.  
  28. typedef wchar_t TOleChar;
  29.  
  30. typedef wchar_t *POleStr;
  31.  
  32. typedef wchar_t *TOleStrList[65536];
  33.  
  34. typedef wchar_t * *POleStrList;
  35.  
  36. typedef System::Comp Largeint;
  37.  
  38. struct TGUID;
  39. typedef GUID *PGUID;
  40.  
  41. #pragma pack(push, 4)
  42. struct TGUID
  43. {
  44.     unsigned D1;
  45.     Word D2;
  46.     Word D3;
  47.     Byte D4[8];
  48. } ;
  49. #pragma pack(pop)
  50.  
  51. typedef GUID *PIID;
  52.  
  53. typedef GUID  TIID;
  54.  
  55. typedef GUID *PCLSID;
  56.  
  57. typedef GUID  TCLSID;
  58.  
  59. typedef _OBJECTID *PObjectID;
  60.  
  61. typedef _OBJECTID  TObjectID;
  62.  
  63. typedef unsigned TLCID;
  64.  
  65. typedef tagBIND_OPTS *PBindOpts;
  66.  
  67. typedef tagBIND_OPTS  TBindOpts;
  68.  
  69. typedef tagSTATSTG *PStatStg;
  70.  
  71. typedef tagSTATSTG  TStatStg;
  72.  
  73. typedef wchar_t * *TSNB;
  74.  
  75. typedef tagDVTARGETDEVICE *PDVTargetDevice;
  76.  
  77. #pragma pack(push, 1)
  78. struct OLE2__42
  79. {
  80.     
  81. } ;
  82. #pragma pack(pop)
  83.  
  84. typedef tagDVTARGETDEVICE  TDVTargetDevice;
  85.  
  86. typedef Word *PClipFormat;
  87.  
  88. typedef Word TClipFormat;
  89.  
  90. typedef tagFORMATETC *PFormatEtc;
  91.  
  92. typedef tagFORMATETC  TFormatEtc;
  93.  
  94. typedef tagSTATDATA *PStatData;
  95.  
  96. typedef tagSTATDATA  TStatData;
  97.  
  98. typedef tagRemSTGMEDIUM *PRemStgMedium;
  99.  
  100. #pragma pack(push, 1)
  101. struct OLE2__82
  102. {
  103.     
  104. } ;
  105. #pragma pack(pop)
  106.  
  107. typedef tagRemSTGMEDIUM  TRemStgMedium;
  108.  
  109. typedef tagSTGMEDIUM *PStgMedium;
  110.  
  111. typedef tagSTGMEDIUM  TStgMedium;
  112.  
  113. typedef tagINTERFACEINFO *PInterfaceInfo;
  114.  
  115. typedef tagINTERFACEINFO  TInterfaceInfo;
  116.  
  117. typedef int TRpcOleDataRep;
  118.  
  119. typedef tagRPCOLEMESSAGE *PRpcOleMessage;
  120.  
  121. typedef tagRPCOLEMESSAGE  TRpcOleMessage;
  122.  
  123. typedef wchar_t * *PBStr;
  124.  
  125. typedef wchar_t *TBStr;
  126.  
  127. typedef wchar_t *TBStrList[65536];
  128.  
  129. typedef wchar_t * *PBStrList;
  130.  
  131. typedef tagBLOB *PBlob;
  132.  
  133. typedef tagCLIPDATA *PClipData;
  134.  
  135. typedef tagCLIPDATA  TClipData;
  136.  
  137. typedef tagSAFEARRAYBOUND *PSafeArrayBound;
  138.  
  139. typedef tagSAFEARRAYBOUND  TSafeArrayBound;
  140.  
  141. typedef tagSAFEARRAY *PSafeArray;
  142.  
  143. typedef tagSAFEARRAY  TSafeArray;
  144.  
  145. typedef double TOleDate;
  146.  
  147. typedef System::Comp TCurrency;
  148.  
  149. typedef Word TOleBool;
  150.  
  151. typedef Word TVarType;
  152.  
  153. typedef tagVARIANT *PVariantArg;
  154.  
  155. typedef tagVARIANT  TVariantArg;
  156.  
  157. typedef tagVARIANT TVariantArgList[65536];
  158.  
  159. typedef tagVARIANT *PVariantArgList;
  160.  
  161. typedef int TDispID;
  162.  
  163. typedef int TDispIDList[65536];
  164.  
  165. typedef int *PDispIDList;
  166.  
  167. typedef int TMemberID;
  168.  
  169. typedef int TMemberIDList[65536];
  170.  
  171. typedef int *PMemberIDList;
  172.  
  173. typedef int TPropID;
  174.  
  175. typedef int HRefType;
  176.  
  177. typedef int TTypeKind;
  178.  
  179. typedef tagARRAYDESC *PArrayDesc;
  180.  
  181. typedef tagTYPEDESC *PTypeDesc;
  182.  
  183. typedef tagTYPEDESC  TTypeDesc;
  184.  
  185. typedef tagARRAYDESC  TArrayDesc;
  186.  
  187. typedef tagIDLDESC *PIDLDesc;
  188.  
  189. typedef tagIDLDESC  TIDLDesc;
  190.  
  191. typedef tagELEMDESC *PElemDesc;
  192.  
  193. typedef tagELEMDESC  TElemDesc;
  194.  
  195. typedef tagELEMDESC TElemDescList[65536];
  196.  
  197. typedef tagELEMDESC *PElemDescList;
  198.  
  199. typedef tagTYPEATTR *PTypeAttr;
  200.  
  201. typedef tagTYPEATTR  TTypeAttr;
  202.  
  203. typedef tagDISPPARAMS *PDispParams;
  204.  
  205. typedef tagDISPPARAMS  TDispParams;
  206.  
  207. typedef tagEXCEPINFO *PExcepInfo;
  208.  
  209. typedef unsigned __stdcall (*TFNDeferredFillIn)(PExcepInfo ExInfo);
  210.  
  211. typedef tagEXCEPINFO  TExcepInfo;
  212.  
  213. typedef int TFuncKind;
  214.  
  215. typedef int TInvokeKind;
  216.  
  217. typedef int TCallConv;
  218.  
  219. typedef tagFUNCDESC *PFuncDesc;
  220.  
  221. typedef tagFUNCDESC  TFuncDesc;
  222.  
  223. typedef int TVarKind;
  224.  
  225. typedef tagVARDESC *PVarDesc;
  226.  
  227. typedef tagVARDESC  TVarDesc;
  228.  
  229. typedef int TDescKind;
  230.  
  231. typedef tagBINDPTR *PBindPtr;
  232.  
  233. typedef tagBINDPTR  TBindPtr;
  234.  
  235. typedef int TSysKind;
  236.  
  237. typedef tagTLIBATTR *PTLibAttr;
  238.  
  239. typedef tagTLIBATTR  TTLibAttr;
  240.  
  241. typedef ITypeInfo* TTypeInfoList[65536];
  242.  
  243. typedef ITypeInfo* *PTypeInfoList;
  244.  
  245. typedef tagPARAMDATA *PParamData;
  246.  
  247. typedef tagPARAMDATA  TParamData;
  248.  
  249. typedef tagPARAMDATA TParamDataList[65536];
  250.  
  251. typedef tagPARAMDATA *PParamDataList;
  252.  
  253. typedef tagMETHODDATA *PMethodData;
  254.  
  255. typedef tagMETHODDATA  TMethodData;
  256.  
  257. typedef tagMETHODDATA TMethodDataList[65536];
  258.  
  259. typedef tagMETHODDATA *PMethodDataList;
  260.  
  261. typedef tagINTERFACEDATA *PInterfaceData;
  262.  
  263. typedef tagINTERFACEDATA  TInterfaceData;
  264.  
  265. typedef tagOBJECTDESCRIPTOR *PObjectDescriptor;
  266.  
  267. typedef tagOBJECTDESCRIPTOR  TObjectDescriptor;
  268.  
  269. typedef tagOBJECTDESCRIPTOR *PLinkSrcDescriptor;
  270.  
  271. typedef tagOBJECTDESCRIPTOR  TLinkSrcDescriptor;
  272.  
  273. typedef tagOIFI *POleInPlaceFrameInfo;
  274.  
  275. typedef tagOIFI  TOleInPlaceFrameInfo;
  276.  
  277. typedef tagOleMenuGroupWidths *POleMenuGroupWidths;
  278.  
  279. typedef tagOleMenuGroupWidths  TOleMenuGroupWidths;
  280.  
  281. typedef BOOL __stdcall (*TContinueFunc)(int dwContinue);
  282.  
  283. typedef tagOLEVERB *POleVerb;
  284.  
  285. typedef tagOLEVERB  TOleVerb;
  286.  
  287. typedef unsigned __stdcall (*TDLLGetClassObject)(const GUID &clsid, const GUID &iid, void *pv);
  288.  
  289. typedef unsigned __stdcall (*TDLLCanUnloadNow)(void);
  290.  
  291. //-- var, const, procedure ---------------------------------------------------
  292. extern PACKAGE bool __fastcall Succeeded(unsigned Res);
  293. extern PACKAGE bool __fastcall Failed(unsigned Res);
  294. extern PACKAGE int __fastcall ResultCode(unsigned Res);
  295. extern PACKAGE int __fastcall ResultFacility(unsigned Res);
  296. extern PACKAGE int __fastcall ResultSeverity(unsigned Res);
  297.  
  298. }    /* namespace Ole2 */
  299. #if !defined(NO_IMPLICIT_NAMESPACE_USE)
  300. using namespace Ole2;
  301. #endif
  302. #pragma option pop    // -w-
  303.  
  304. #pragma delphiheader end.
  305. //-- end unit ----------------------------------------------------------------
  306. #endif    // OLE2
  307.